#ifndef _PAGE_MANAGER_H
#define _PAGE_MANAGER_H
#include <input_manager.h>

typedef struct Layout {
	int iTopLeftX;
	int iTopLeftY;
	int iBotRightX;
	int iBotRightY;
	char *strIconName;
}T_Layout,*PT_Layout;

typedef struct PageAction {
	char *name;
	void (*Run)(void);
	int (*GetInputEvent)(PT_Layout atLayout);
	int (*Prepare)();
	struct PageAction *ptNext;
}T_PageAction, *PT_PageAction;



int ID(char * name);
int MainPageInit(void);
PT_PageAction Page(char *pcName);
int RegisterPageAction(PT_PageAction ptPageAction);
int PagesInit(void);

#endif /* _PAGE_MANAGER_H */

